Namespace HBBSoft.Pivot
    <System.Serializable()> Public NotInheritable Class LevelCollection
        Inherits System.Collections.CollectionBase

        Default Public Property Item(ByVal Index As Integer) As Level
            Get
                Return CType(List.Item(Index), Level)
            End Get
            Set(ByVal value As Level)
                List.Item(Index) = value
            End Set
        End Property

        Public Sub Add(ByRef value As Level)
            List.Add(value)
        End Sub

        Public Sub Insert(ByVal Index As Integer, ByRef value As Level)
            List.Insert(Index, value)
        End Sub

        Public Sub Remove(ByRef value As Level)
            List.Remove(value)
        End Sub

        Public Function Contains(ByRef value As Level) As Boolean
            Return List.Contains(value)
        End Function

        Public Function IndexOf(ByRef value As Level) As Integer
            Return List.IndexOf(value)
        End Function


    End Class
End Namespace
